package com.xiaojiezhu.jex.test.controller;

import com.xiaojiehzu.jex.client.config.AnnotationConfigLoader;
import com.xiaojiehzu.jex.client.config.ConfigLoader;
import com.xiaojiehzu.jex.client.config.EnableJex;
import com.xiaojiehzu.jex.client.config.JexConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 朱小杰
 * 时间 2017-11-05 .12:29
 * 说明 ...
 */
@EnableJex(appName = "business",serverAddress = {"xx.com","bb.com"})
@RestController
@RequestMapping("/a")
public class AController {

    @RequestMapping("/a")
    public String a(){

        ConfigLoader configLoader = AnnotationConfigLoader.getInstance();
        JexConfiguration configuration = configLoader.getConfiguration();
        System.out.println(configuration);

        return "123421";
    }
}
